/*菜单管理相关接口*/
import zxRequest from '@/utils/request';

// 获取菜单
export function getMenuList(params) {
	return zxRequest.get({
		url: '/admin/menu/index',
		params: params,
	});
}

// 新增菜单
export function addMenu(params) {
	return zxRequest.post({
		url: '/admin/menu/add',
		data: params,
	});
}
// 编辑菜单
export function editMenu(params) {
	return zxRequest.post({
		url: '/admin/menu/edit',
		data: params,
	});
}
// 删除菜单
export function delMenu(params) {
	return zxRequest.post({
		url: '/admin/menu/del',
		data: params,
	});
}
